package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Xuesheng;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface XueshengDao extends BaseMapper<Xuesheng> {

@Select("select * from xuesheng")
List<Map<String, Object>> daochuexcel();

//youxxianxci

@Select("SELECT distinct(yuanxi) as aa,count(id) as bb FROM xuesheng group by yuanxi order by id")List<Map<String, Object>> xuesheng_tj_yuanxi();@Select("SELECT distinct(banji) as aa,count(id) as bb FROM xuesheng group by banji order by id")List<Map<String, Object>> xuesheng_tj_banji();//tonxgji1

}
